<?php
namespace core\lib;
use \core\lib\conf;
class model extends \PDO
{
	public function __construct(){
		$temp = conf::all('data');
		try{
			parent::__construct($temp['DSN'],$temp['USERNAME'],$temp['PASSWORD']);
		} catch (\PDOException $e){
			P($e->getMessage());
		}
	}
}